package tw.com.softleader.reins.demo.book.entity;
 
import java.sql.Timestamp;

public class Book {
	private Long id;
	private String title;
	private String writer;
	private Timestamp publication;
	private String isbn;

	public Book() {
	}
	
	public Book(Long id, String title, String writer, Timestamp publication,String isbn) {
		this.id = id;
		this.title = title;
		this.writer = writer;
		this.publication = publication;
		this.isbn = isbn;
	}
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getWriter() {
		return writer;
	}
	public void setWriter(String writer) {
		this.writer = writer;
	}
	public Timestamp getPublication() {
		return publication;
	}
	public void setPublication(Timestamp timestamp) {
		this.publication = timestamp;
	}
	public String getIsbn() {
		return isbn;
	}
	public void setIsbn(String isbn) {
		this.isbn = isbn;
	}
	
	@Override
	public String toString() {
		return "User [id=" + id + ", title=" + title + ", writer=" + writer + ", publication=" + publication + ", isbn=" + isbn+ "]";
	}
	
}
